package ru.spb.osll.myfit.common.chart;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ChartData implements Serializable, IsSerializable {
  private List<ChartCurve> m_curves = new ArrayList<ChartCurve>();
  private String m_name;

  private String m_horizontalLabel = "";
  private String m_verticalLabel = "";
  private String m_title = "";

  public ChartData(String name) {
    m_name = name;
  }

  public ChartData() { }

  public ChartData(List<ChartCurve> curves, String name, String horizontalLabel, String verticalLabel, String title) {
    m_curves = curves;
    m_name = name;
    m_horizontalLabel = horizontalLabel;
    m_verticalLabel = verticalLabel;
    m_title = title;
  }

  public List<ChartCurve> getCurves() {
    return m_curves;
  }

  public String getName() {
    return m_name;
  }

  public void setName(String name) {
    m_name = name;
  }

  public String getHorizontalLabel() {
    return m_horizontalLabel;
  }

  public void setHorizontalLabel(String horizontalLabel) {
    m_horizontalLabel = horizontalLabel;
  }

  public String getVerticalLabel() {
    return m_verticalLabel;
  }

  public void setVerticalLabel(String verticalLabel) {
    m_verticalLabel = verticalLabel;
  }
  public String getTitle() {
    return m_title;
  }

  public void setTitle(String title) {
    m_title = title;
  }
}
